<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>调整表格列宽度Demo</title>
<link href="mycss.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<table id="tabler"  class="listext" >
<thead><tr><th>sdf<th></tr></thead><tbody><tr><td>sdf<td></tr></tbody></table>


	<script type="text/javascript" language="javascript" src="js/jqueryv1.10.1.js"></script>
	<script type="text/javascript" language="javascript" src="js/jquery_002.js"></script>
	<script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
	<script type="text/javascript" language="javascript" >
 	$(document).ready(function() {
			/* $('#tabler').DataTable({
			
			"ajax" : {
						"url" : "interface/getByOrg",  //引入json数据
						"dataSrc" : ""
					}
			
									}); */


$('#itf_table').dataTable(
	{
		"language": {
					"emptyTable": "服务组表无任何数据",
					"infoEmpty": "没有数据显示",
					"search": "",
					"zeroRecords": "无查询结果"
					},
		'dom':'t',
		"searching":false,
		'responsive': true,
		"ordering":false,
		"paging" : false,
		"info" : false,
		"processing": false,
		"ajax" : {
				"url" : "http://222.25.4.253/crmapp-webservice/coupon/getCouReport",  //引入json数据
				"dataSrc" : ""
				},
		"search" : {
					"smart" : false
					},
		"columns" : [
						{
						"data" : "itfId",
						"title":"qw",
						"visible" : true,
						"sortable" : false,
						"className":"text-center",
						"width" : "1%",
						"render" : function(data, type,full) {
														return "<input type='checkbox' name='iftName' class='i-checkbox'  value='"+data+"'/>";
																}
						}, 
					{
					"data" : "itfCode",
					"title" : "编号",
					"defaultContent":"--"
					},
					{
					"data" : "itfName",
					"title" : "名称",
					"defaultContent":"--"
					},
					{
					"data" : "itfCount",
					"title" : "使用网点",
					"defaultContent":"--"
					},
					{
					"data" : "orgName",
					"title" : "平台名称",
					"defaultContent":"--"
					}, 
					{
					"data" : "itfCreTime",
					"title" : "创建时间",
					"render":function(data){
						return $.crmapp.formatDate(data);
					},
					"defaultContent":"--"
					},
					{
					"data" : "usrRName",
					"title" : "创建人",
					"defaultContent":"--"
					},
					{
					"data" : "itfDesc",
					"title" : "服务组说明",
					"render":function(data){
						var sData = data;
						if(data.length>12){
							sData = data.substr(0,12)+"...";  //截取字符串
						}
						return '<span class="itfDesc" data-toggle="tooltip" data-placement="top" title="'+data+'">'+sData+'</span>';
					},
					"defaultContent":"--"
					}],
					"drawCallback": function( settings ) {
						$(":checkbox").uniform(); 
						}
					});

						}); 
					$(function()
					{
						$(".listext").resizableColumns({});
		});
	</script>
</body>

</html>